<!--密码-->
<template>
  <el-input
    v-model="value"
    v-bind="$attrs"
    :id="'c' + meta.columnId"
    :name="'c' + meta.columnId"
    :clearable="clearable"
    show-password
  >
  </el-input>
</template>

<script setup lang="ts" generic="T extends object">
  import { defineComponent } from 'vue'
  // 引入组件需要的属性 引入表单子控件的管理类
  import type { IFormItemProps } from '../../map'
  import { itemController } from '../../map'

  defineOptions({
    name: 'nf-el-form-item-password',
    inheritAttrs: false,
  })
 
  const props = defineProps<IFormItemProps<T>>()
 
  // 支持防抖等功能
  const { value } = itemController(props)

</script>
